package cn.zyy.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Student {

  private long stuId;
  private String stuName;
  private long classId;

  //额外属性
  private String className;

  @Override
  public String toString() {
    return "姓名：" + stuName + "\t班级：" + className;
  }

}
